package com.xiashitech.interfaces.apiservice.dto;

import com.xiashitech.interfaces.agent.dto.SystemInfoDTO;
import com.xiashitech.interfaces.apiservice.dto.base.Response;
import com.xiashitech.interfaces.apiservice.dto.base.Table;
import lombok.*;

import java.util.List;

@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper=true)
public class AuthFactResponse extends Response {

    //预留后续使用，本次请求的权限
//    private Boolean auth;

    private String operate;

    /**
     * 所涉及到的表和涉及的该表的字段
     */
    private List<Table> tables;

    /**
     * 从权限中心获取的第三方系统信息
     */
    private SystemInfoDTO systemInfoDTO;

    @Builder
    public AuthFactResponse(String code, String message, String operate, List<Table> tables, SystemInfoDTO systemInfoDTO) {
        super(code, message);
        this.operate = operate;
        this.tables = tables;
        this.systemInfoDTO = systemInfoDTO;
    }
}
